package com.lanswon.qzsmk.model;

import java.io.Serializable;

public class SysPermission implements Serializable {
    /** 权限ID */
    private Integer privilegeId;

    /** 资源名称 */
    private String privilegeName;

    /** 资源类型：menu,button, */
    private String privilegeType;
    
    /**
     * 资源类型名称
     */
    private String privilegeTypeName;

    /** 访问url地址 */
    private String privilegeResource;

    /** 权限代码字符串 */
    private String percode;

    /** 父结点id */
    private Integer parentid;

    /** 父结点id列表串 */
    private String parentids;

    /** 排序号 */
    private Integer sorting;

    /** 是否可用,1：可用，0不可用 */
    private String availabel;


    public String getPrivilegeTypeName() {
		return privilegeTypeName;
	}

	public void setPrivilegeTypeName(String privilegeTypeName) {
		this.privilegeTypeName = privilegeTypeName;
	}

	public Integer getPrivilegeId() {
        return privilegeId;
    }

    public void setPrivilegeId(Integer privilegeId) {
        this.privilegeId = privilegeId;
    }

    public String getPrivilegeName() {
        return privilegeName;
    }

    public void setPrivilegeName(String privilegeName) {
        this.privilegeName = privilegeName == null ? null : privilegeName.trim();
    }

    public String getPrivilegeType() {
        return privilegeType;
    }

    public void setPrivilegeType(String privilegeType) {
        this.privilegeType = privilegeType == null ? null : privilegeType.trim();
    }

    public String getPrivilegeResource() {
        return privilegeResource;
    }

    public void setPrivilegeResource(String privilegeResource) {
        this.privilegeResource = privilegeResource == null ? null : privilegeResource.trim();
    }

    public String getPercode() {
        return percode;
    }

    public void setPercode(String percode) {
        this.percode = percode == null ? null : percode.trim();
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getParentids() {
        return parentids;
    }

    public void setParentids(String parentids) {
        this.parentids = parentids == null ? null : parentids.trim();
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public String getAvailabel() {
        return availabel;
    }

    public void setAvailabel(String availabel) {
        this.availabel = availabel == null ? null : availabel.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", privilegeId=").append(privilegeId);
        sb.append(", privilegeName=").append(privilegeName);
        sb.append(", privilegeType=").append(privilegeType);
        sb.append(", privilegeResource=").append(privilegeResource);
        sb.append(", percode=").append(percode);
        sb.append(", parentid=").append(parentid);
        sb.append(", parentids=").append(parentids);
        sb.append(", sorting=").append(sorting);
        sb.append(", availabel=").append(availabel);
        sb.append(", privilegeTypeName=").append(privilegeTypeName);
        sb.append("]");
        return sb.toString();
    }
}